package cn.com.twoke.application.game.mario.core.ecs.component.render.texture;

import cn.com.twoke.application.game.mario.core.ecs.component.render.RenderComponent;
import cn.com.twoke.application.game.mario.core.ecs.component.render.RenderHandler;
import lombok.Builder;
import lombok.Data;

import java.util.function.Supplier;

@Data
@Builder
@RenderHandler(TextureRenderComponentHandler.class)
public class TextureRenderComponent implements RenderComponent {
    public final Supplier<String> textureId;
    @Builder.Default
    public Integer index = 0;


    @Override
    public Boolean isDisplay() {
        return true;
    }
}
